package com.ctsi.ssdc.repository;

import com.ctsi.ssdc.domain.LitemallOrder;
import com.ctsi.ssdc.domain.LitemallOrderExample;

import java.time.ZonedDateTime;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;

/**
 * @author ctsi-biyi-generator
*/
@Mapper
public interface LitemallOrderRepository extends BaseRepository<LitemallOrder, Integer, LitemallOrderExample> {
    @Override
    long countByExample(LitemallOrderExample example);

    @Override
    int deleteByExample(LitemallOrderExample example);

    @Override
    int deleteByPrimaryKey(Integer id);

    @Options(useGeneratedKeys=true, keyProperty="id")
    @Override
    int insert(LitemallOrder record);

    @Options(useGeneratedKeys=true, keyProperty="id")
    @Override
    int insertSelective(LitemallOrder record);

    @Override
    List<LitemallOrder> selectByExample(LitemallOrderExample example);

    @Override
    LitemallOrder selectByPrimaryKey(Integer id);

    @Override
    int updateByExampleSelective(@Param("record") LitemallOrder record, @Param("example") LitemallOrderExample example);

    @Override
    int updateByExample(@Param("record") LitemallOrder record, @Param("example") LitemallOrderExample example);

    @Override
    int updateByPrimaryKeySelective(LitemallOrder record);

    @Override
    int updateByPrimaryKey(LitemallOrder record);

    LitemallOrder selectOneByExample(LitemallOrderExample example);


    int logicalDeleteByPrimaryKey(Integer orderId);

    List<LitemallOrder> selectByExampleSelective(LitemallOrderExample example, LitemallOrder.Column orderStatus, LitemallOrder.Column comments);
}